<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" th:href="@{/bootstrap/css/bootstrap.css}">
    <link rel="stylesheet" th:href="@{/css/common.css}">
</head>
<body>
    <div th:insert="~{common/header::header2}"></div>
    <div class="container-fluid">
        <div class="row">
            <div th:insert="~{common/menu::menu}" class="col-md-2"></div>
            <div class="col-md-10">
                <ul class="breadcrumb">
                    <li><a th:href="@{/main.do}">后台主页</a></li>
                    <li>新闻数据管理</li>
                    <li>新闻录入</li>
                </ul>
                <form class="form-horizontal" th:action="@{/news-info/input.do}">
                    <div class="form-group row justify-content-sm-center">
                        <label for="newsTitle" class="col-sm-2 col-form-label font-weight-bolder">新闻标题</label>
                        <div class="col-sm-5">
                            <input type="text"  class="form-control" id="newsTitle" name="newsTitle" placeholder="请输入新闻标题" required>
                        </div>
                    </div>
                    <div class="form-group row justify-content-sm-center">
                        <label class="col-sm-2 col-form-label font-weight-bolder">发布范围</label>
                        <div class="col-sm-5">
                            <select class="form-control" name="cityId">
                                <option th:value="100000000">全国</option>
                                <option th:each="province:${provinces}" th:value="${province.getCityId()}" th:text="${province.getCityName()}"></option>
                            </select>
                        </div>
                    </div>
                    <div class="form-group row justify-content-sm-center">
                        <label for="newsContent" class="col-sm-2 col-form-label font-weight-bolder">新闻内容</label>
                        <div class="col-sm-5">
                            <textarea  class="form-control" id="newsContent" name="newsContent" placeholder="请输入新闻内容" required></textarea>
                        </div>
                    </div>
                    <div class="form-group row justify-content-sm-center">
                        <label for="userName" class="col-sm-2 col-form-label font-weight-bolder">发布机构</label>
                        <div class="col-sm-5">
                            <input type="text"  class="form-control" id="userName" name="userName" placeholder="请输入发布机构" required>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <div class="layui-input-block">
                            <button type="submit" class="btn btn-success btn-sm">立即提交</button>
                            <button type="reset" class="btn btn-danger btn-sm">重置</button>
                        </div>
                    </div>
                </form>
            </div>

        </div>
    </div>
</body>
<script th:src="@{/jquery/jquery-3.5.1.js}"></script>
<script th:src="@{/bootstrap/js/bootstrap.js}"></script>
<script th:src="@{/bootstrap/datepicker/bootstrap-datepicker.js}"></script>
<script th:src="@{/bootstrap/datepicker/bootstrap-datepicker.zh-CN.min.js}"></script>
<script th:inline="javascript">

</script>
</html>